package com.sc.adminspringboot.service.impl;

import com.sc.adminspringboot.pojo.PostImages;
import com.sc.adminspringboot.dao.IPostImagesDao;
import com.sc.adminspringboot.service.IPostImagesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 帖子图片关联表 服务实现类
 * </p>
 *
 * @author 万超凡
 * @since 2025-09-20 10:36:46
 */
@Service
public class PostImagesServiceImpl extends ServiceImpl<IPostImagesDao, PostImages> implements IPostImagesService {

    @Autowired
    IPostImagesDao postImagesDao;

    @Override
    public List<PostImages> getImagesByPostId(Integer postId) {
        return postImagesDao.getImagesByPostId(postId);
    }
}
